﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>花间语</title>
<link href="/static/index/css/css_whir.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/static/index/font/iconfont.css">
<link href="/static/index/css/user.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/static/index/js/jquery.min.js"></script>
<script type="text/javascript"  src="/static/index/js/nav.js"></script>
<script type="text/javascript" src="/static/index/js/jquery.SuperSlide.2.1.1.js"></script>
<link href="/static/index/css/toastr.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/static/index/js/toastr.min.js"></script>
<script type="text/javascript" src="/static/index/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/static/index/js/bootstrap.min.js"></script>
</head>
<body>
<!--头部-->
<div id="header">
  <div class="top_bg">
    <div class="logo"><a href="#"><img src="/static/index/imgs/logo.jpg" width="150" height="90" /></a></div>
    <div class="top">
      <!--导航-->
      <!-- {block name="header"} -->
      <div class="guide">
        <div class="welcom">Welcome to fantasy_dream !　</div>
        <div class="login">

            {empty name="session.hmy_user"}
            <a href="{:url('index/Login/index')}">登录</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="{:url('index/Register/index')}">注册</a>
            {else /}

            {empty name="session.hmy_user.name"}

            <a href="{:url('index/User/index')}" title="进入{$session.hmy_user.tel}主页"> | 您好,{$Request.session.hmy_user.tel}</a>

            {else /}

            <a href="{:url('index/User/index')}" title="进入{$session.hmy_user.name}主页"> 您好,{$Request.session.hmy_user.name}</a>

            {/empty}

             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="{:url('index/Login/outlogin')}">注销</a>

             {/empty}
        </div>
        <!-- <div class="shopcart">购物车（<a href="会员中心.html">0</a>）</div> -->
        <div class="searchbox">
          <input type="text" value="" name="" class="input" />
          <input type="image" src="/static/index/imgs/sbtn.jpg"  class="btn"/>
        </div>
      </div>
      <!-- {/block} -->
      <!--菜单导航-->
      <div class="nav">
        <ul id="navul" class="cl">
          <li><a href="{:url('index/index/index')}">首页</a></li>
          {volist name="category" id="v"}
          <li class="navmenu"><a href="{:url('index/Index/lists',['id'=>$v['id']])}">{$v['name']}</a>
          </li>
          {/volist}
        </ul>
    <script type="text/javascript">

             $(document).ready(function(){
            //  $('.hyinfo li ').hover(function(){$(this).find('.subbox').stop(true,true).slideToggle(); });
              $('.navmenu').mouseenter(function(){

            $(this).find('.subnav').css("display","block");//you can give it a speed

              });
              $('.navmenu').mouseleave(function(){
            $(this).find('.subnav').css("display","none");

              //jQuery(this).css("background-image", "none");

              });

            });

        </script>
      </div>
    </div>
  </div>
</div>

{block name="main"}
<!--中间内容-->
<div class="hymain">
  <div class="position">您当前的位置：<em>{$user.name}的个人中心</em></div>
  <!--左侧菜单-->
  <div class="leftmenu">
    <div class="titlei"><h1>{$user.name}的个人中心</h1></div>
    <div class="menubox">
      <h2>内容管理</h2>
        <h3><a href="{:url('index/Fansfollow/viewfans',['id'=>$user.id])}">粉丝管理</a></h3>
        <h3><a href="{:url('index/Fansfollow/like',['id'=>$user.id])}">收藏管理</a></h3>
        <h3><a href="{:url('index/Fansfollow/viewfollow',['id'=>$user.id])}">关注管理</a></h3>
    </div>
  </div>
  <!--右侧内容-->
  <div class="rightinfo">
    <!--优惠券-->
    <div class="yhquan">
      <div class="tuxiang">
          {empty name="$user.icon"}
          <img src="/static/index/imgs/scimg.jpg" width="100" height="100"/>
          {else /}
          <img src="http://pn5tyoo5a.bkt.clouddn.com/{$user.icon}" width="100" height="100"/>
          {/empty}

      </div>
      <div class="yhqlist">
      <div class="name">{$user.name}</div>
      <table cellpadding="0" cellspacing="0" class="tab">
          <td width="20%" height="100%">关注<a href="{:url('index/Fansfollow/viewfollow',['id'=>$user.id])}">({$follow_num})</a></td>
          <td width="20%" height="100%">粉丝<a href="{:url('index/Fansfollow/viewfans',['id'=>$user.id])}">({$fans_num})</a></td>
          <td width="20%" height="100%">收藏<a href="{:url('index/Fansfollow/like',['id'=>$user.id])}">({$like_num})</a></td>
      </table>
      </div>
    </div>

<!--推荐产品-->
    <div class="titlei2" style="margin-top: 80px;"><h1>
      {if condition="$user.sex eq 1"}
      他的作品
      {else /}
      她的作品
      {/if}
  </h1><h3 style="float:right;"><a href="{:url('index/Fansfollow/picture',['uid'=>$user.id])}">查看全部 >></a>
    </h3></div>
    <div class="picnews" style="margin-bottom: 100px">
      <div class="picScroll-left">
              <div class="bd">
                <ul class="picList">
                  {empty name="list"}

                      <font align="center" size="4">这家伙很懒,他还没有作品....</font>

                    {else/}

                      {volist name="list" id="v"}

                      <li>
                        <div class="pic">
                          <a href="{:url('index/Picture/detail',['id'=>$v['id']])}"><img class="pic1" src="http://pn5tyoo5a.bkt.clouddn.com/{$v.src}" title="{$v.title}"/></a>
                        </div>

                      </li>
                      {/volist}

                    {/empty}

                </ul>
              </div>

     </div>
  </div>
<!-- {/block} -->
<!--底部-->

<script type="text/javascript">
$(document).ready(function(){

  $("#leftsead a").hover(function(){
    if($(this).prop("className")=="youhui"){
      $(this).children("img.hides").show();
    }else{
      $(this).children("img.hides").show();
      $(this).children("img.shows").hide();
      $(this).children("img.hides").animate({marginLeft:'0px'},'slow');
    }
  },function(){
    if($(this).prop("className")=="youhui"){
      $(this).children("img.hides").hide('slow');
    }else{
      $(this).children("img.hides").animate({marginLeft:'-143px'},'slow',function(){$(this).hide();$(this).next("img.shows").show();});
    }
  });

  $("#top_btn").click(function(){if(scroll=="off") return;$("html,body").animate({scrollTop: 0}, 600);});

});
</script>

</body>
</html>
